const settingInfo = JSON.parse(localStorage.getItem('setting-info') || '{}')
interface Setting {
    projectName: string
    theme: 'light' | 'dark'
    sideTheme: 'dark' | 'white' | 'blue' | 'image'
    themeColor: string
    layoutMode: 'ltr' | 'ttb' | 'lcr'
    sideWidth: number
    pageAnim: 'fade' | 'opacity' | 'down' | 'scale'
    isFixedNavBar: boolean
    actionBar: {
        isShowSearch: boolean
        isShowMessage: boolean
        isShowRefresh: boolean
        isShowFullScreen: boolean
    }
}

export const projectName = 'django_open_ipam平台'

export default Object.assign(
    {
        theme: 'light',
        sideTheme: 'dark',
        themeColor: 'cyan@#18a058',
        layoutMode: 'ltr',
        sideWidth: 210,
        pageAnim: 'scale',
        isFixedNavBar: true,
        actionBar: {
            isShowSearch: true,
            isShowMessage: true,
            isShowRefresh: true,
            isShowFullScreen: true,
        },
    },
    settingInfo
) as Setting
